import request from '@/utils/request'
// -------------修改手机号------------

// 修改手机号
export const getUpdatePhonenumberApi = (data) => {

    return request({
        url: `system/user/profile/updatePhonenumber`,
        method: 'put',
        data
    })
}

// 修改邮箱
export const getProfileUpdateEmailApi = (data) => {

    return request({
        url: `system/user/profile/updateEmail`,
        method: 'put',
        data
    })
}

// 修改个人信息
export const getUserProfileApi = (data) => {
    return request({
        url: `system/user/profile`,
        method: 'put',
        data
    })
}

// 修改密码  /system/user/profile/updatePwd
export const setUserProfileUpdatePwdApi = (data) =>{
    return request({
        url: `/system/user/profile/updatePwd`,
        method: 'put',
        data
    })
}

// 修改名字 /system/user/updateUserName
export const editUserUpdateUserNameApi = (name) =>{
    return request({
        url: `/system/user/updateUserName?name=${name}`,
        method: 'put',
    })
}